package com.green.common.page.grid.utils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 
 * @author lineshow email:lineshow7@gmail.com
 * @version 1.0
 * 
 *          Grid.java created on 2011-7-16
 * 
 *          description:关联前端grid数据容器
 */
public class Grid implements Serializable {
	private static final long serialVersionUID = -5236572225183197546L;
	private StringBuilder summary;
	private List<Map<String, Object>> data;

	public Grid() {
		summary = new StringBuilder();
		data = new ArrayList<Map<String, Object>>();
	}

	public StringBuilder getSummary() {
		return summary;
	}

	public void setSummary(StringBuilder summary) {
		this.summary = summary;
	}

	public void merge(Grid grid) {
		data.addAll(grid.getData());
	}

	public List<Map<String, Object>> getData() {
		return data;
	}

	public void setData(List<Map<String, Object>> data) {
		this.data = data;
	}

}
